package cn.sitedev.improved.setterinject;

import cn.sitedev.improved.ICourse;

/**
 * @author qchen
 * @description setter方式注入
 * @date 2020/9/16 1:02
 */
public class Tom {
    private ICourse course;

    public ICourse getCourse() {
        return course;
    }

    public void setCourse(ICourse course) {
        this.course = course;
    }

    public void study() {
        course.study();
    }
}
